package com.luo.cloud.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiangnan
 * @date 2018/3/29 10:25
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/world")
    public String index(@RequestParam String name) {
        System.out.println("hello " + name);
        return "hello " + name;
    }
}
